package com.acoreful.menos.enums;

import java.util.Map;

public final class LoanConstans {
	
	private static final String  PAY_LOAN_STATUS="PayLoanStatus";
	/**
	 * 放款
	 * @author WallenHeng
	 *
	 */
	public enum PayLoanStatus implements StrEnum {
		
		S1("S1");
		private String val;
		private static Map<String, PayLoanStatus> instanceMap =EnumUtils.mapStrEnum(PayLoanStatus.class);
		private PayLoanStatus(String val) {
			this.val = val;
		}

		@Override
		public String toStr() {
			return PAY_LOAN_STATUS+"_"+val;
		}
		public PayLoanStatus valOf(String str){
			return instanceMap.get(str);
		}
		
		
	}
	
	/**
	 * 贷款事件
	 * @author WallenHeng
	 *
	 */
	public enum LoanEvent implements StrEnum{
		;
		private String val;
		private static Map<String, PayLoanStatus> instanceMap =EnumUtils.mapStrEnum(PayLoanStatus.class);
		private LoanEvent(String val) {
			this.val = val;
		}

		@Override
		public String toStr() {
			return val;
		}
		public PayLoanStatus valOf(String str){
			return instanceMap.get(str);
		}
	}
}
